<?php

namespace Luka\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Luka\StoreBundle\Entity\Invoice
 *
 * @ORM\Table(name="Invoice")
 * @ORM\Entity
 */
class Invoice
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string $number
     *
     * @ORM\Column(name="number", type="string", length=50, nullable=false)
     */
    private $number;

    /**
     * @var decimal $total
     *
     * @ORM\Column(name="total", type="decimal", nullable=false)
     */
    private $total;

    /**
     * @var decimal $vat
     *
     * @ORM\Column(name="vat", type="decimal", nullable=false)
     */
    private $vat;

    /**
     * @var decimal $sum
     *
     * @ORM\Column(name="sum", type="decimal", nullable=false)
     */
    private $sum;

    /**
     * @var Schedule
     *
     * @ORM\ManyToOne(targetEntity="Schedule")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="schedule_id", referencedColumnName="id")
     * })
     */
    private $schedule;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set number
     *
     * @param string $number
     */
    public function setNumber($number)
    {
        $this->number = $number;
    }

    /**
     * Get number
     *
     * @return string 
     */
    public function getNumber()
    {
        return $this->number;
    }

    /**
     * Set total
     *
     * @param decimal $total
     */
    public function setTotal($total)
    {
        $this->total = $total;
    }

    /**
     * Get total
     *
     * @return decimal 
     */
    public function getTotal()
    {
        return $this->total;
    }

    /**
     * Set vat
     *
     * @param decimal $vat
     */
    public function setVat($vat)
    {
        $this->vat = $vat;
    }

    /**
     * Get vat
     *
     * @return decimal 
     */
    public function getVat()
    {
        return $this->vat;
    }

    /**
     * Set sum
     *
     * @param decimal $sum
     */
    public function setSum($sum)
    {
        $this->sum = $sum;
    }

    /**
     * Get sum
     *
     * @return decimal 
     */
    public function getSum()
    {
        return $this->sum;
    }

    /**
     * Set schedule
     *
     * @param Luka\StoreBundle\Entity\Schedule $schedule
     */
    public function setSchedule(\Luka\StoreBundle\Entity\Schedule $schedule)
    {
        $this->schedule = $schedule;
    }

    /**
     * Get schedule
     *
     * @return Luka\StoreBundle\Entity\Schedule 
     */
    public function getSchedule()
    {
        return $this->schedule;
    }
}